|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.app.state.AbstractAppState
furny.jme.appstate.RootNodeState
furny.jme.appstate.SimpleAppState
public abstract class SimpleAppState
Extended AppState
that contains all behavior of
SimpleApplication
.
Nested Class Summary | |
---|---|
private class |
SimpleAppState.AppActionListener
Extended listener for key input. |
static class |
SimpleAppState.VIEWPORT
|
Field Summary | |
---|---|
private SimpleAppState.AppActionListener |
actionListener
|
protected com.jme3.app.Application |
app
|
protected com.jme3.asset.AssetManager |
assetManager
|
protected com.jme3.renderer.Camera |
cam
|
protected com.jme3.system.JmeContext |
context
|
protected SimpleAppState.VIEWPORT |
createViewPort
|
protected com.jme3.input.FlyByCamera |
flyCam
|
protected com.jme3.font.BitmapText |
fpsText
|
protected com.jme3.font.BitmapFont |
guiFont
|
protected com.jme3.scene.Node |
guiNode
|
protected com.jme3.renderer.ViewPort |
guiViewPort
|
static java.lang.String |
INPUT_MAPPING_CAMERA_POS
|
static java.lang.String |
INPUT_MAPPING_EXIT
|
static java.lang.String |
INPUT_MAPPING_MEMORY
|
protected com.jme3.input.InputManager |
inputManager
|
private java.lang.Integer |
overrideHeight
|
private java.lang.Integer |
overrideWidth
|
protected com.jme3.renderer.Renderer |
renderer
|
protected com.jme3.renderer.RenderManager |
renderManager
|
protected float |
secondCounter
|
protected com.jme3.system.AppSettings |
settings
|
private boolean |
showFps
|
protected boolean |
showSettings
|
private boolean |
showStatistics
|
private boolean |
showStatsView
|
protected com.jme3.app.StatsView |
statsView
|
protected com.jme3.renderer.ViewPort |
viewPort
|
Fields inherited from class furny.jme.appstate.RootNodeState |
---|
rootNode |
Fields inherited from class com.jme3.app.state.AbstractAppState |
---|
initialized |
Constructor Summary | |
---|---|
SimpleAppState()
|
Method Summary | |
---|---|
com.jme3.renderer.Camera |
getCamera()
|
com.jme3.input.FlyByCamera |
getFlyByCamera()
Retrieves flyCam. |
com.jme3.font.BitmapText |
getFpsText()
Getter for the fps text to display information. |
com.jme3.scene.Node |
getGuiNode()
Retrieves guiNode. |
com.jme3.renderer.ViewPort |
getGuiViewPort()
Getter for the gui viewport. |
com.jme3.renderer.ViewPort |
getViewPort()
Getter for the main viewport. |
private void |
initCamera()
Creates the camera to use for rendering. |
void |
initialize(com.jme3.app.state.AppStateManager stateManager,
com.jme3.app.Application app)
|
boolean |
isShowStatistics()
Getter for the statistics display. |
private void |
loadFPSText()
Attaches FPS statistics to guiNode and displays it on the screen. |
private void |
loadStatsView()
Attaches Statistics View to guiNode and displays it on the screen above FPS statistics line. |
void |
setDisplayFps(boolean show)
Enables/disables fps display. |
void |
setDisplayStatView(boolean show)
Enables/disables stat view (memory, texture buffers, etc). |
void |
setOverrideSize(int width,
int height)
Overrides the width and height of the AppSettings . |
void |
setShowStatistics(boolean showStatistics)
Enables/disables statistics display. |
abstract void |
simpleInitAppState()
Simple initialization method. |
void |
simpleUpdate(float tpf)
Simple update method. |
void |
update(float tpf)
|
Methods inherited from class furny.jme.appstate.RootNodeState |
---|
getRootNode |
Methods inherited from class com.jme3.app.state.AbstractAppState |
---|
cleanup, isEnabled, isInitialized, postRender, render, setEnabled, stateAttached, stateDetached |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String INPUT_MAPPING_EXIT
public static final java.lang.String INPUT_MAPPING_CAMERA_POS
public static final java.lang.String INPUT_MAPPING_MEMORY
protected com.jme3.renderer.ViewPort viewPort
protected com.jme3.renderer.ViewPort guiViewPort
protected com.jme3.renderer.Camera cam
protected com.jme3.scene.Node guiNode
protected float secondCounter
protected com.jme3.font.BitmapText fpsText
protected com.jme3.font.BitmapFont guiFont
protected com.jme3.app.StatsView statsView
protected com.jme3.input.FlyByCamera flyCam
protected boolean showSettings
protected SimpleAppState.VIEWPORT createViewPort
protected com.jme3.app.Application app
protected com.jme3.renderer.RenderManager renderManager
protected com.jme3.renderer.Renderer renderer
protected com.jme3.asset.AssetManager assetManager
protected com.jme3.input.InputManager inputManager
protected com.jme3.system.JmeContext context
protected com.jme3.system.AppSettings settings
private boolean showStatistics
private boolean showFps
private boolean showStatsView
private final SimpleAppState.AppActionListener actionListener
private java.lang.Integer overrideWidth
private java.lang.Integer overrideHeight
Constructor Detail |
---|
public SimpleAppState()
Method Detail |
---|
public void setOverrideSize(int width, int height)
AppSettings
.
width
- New with.height
- New height.public final void initialize(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application app)
initialize
in interface com.jme3.app.state.AppState
initialize
in class com.jme3.app.state.AbstractAppState
private void initCamera()
public com.jme3.renderer.Camera getCamera()
public com.jme3.input.FlyByCamera getFlyByCamera()
public com.jme3.scene.Node getGuiNode()
public final void update(float tpf)
update
in interface com.jme3.app.state.AppState
update
in class RootNodeState
private void loadFPSText()
private void loadStatsView()
public com.jme3.font.BitmapText getFpsText()
public void setShowStatistics(boolean showStatistics)
showStatistics
- Show statistics if true
.public boolean isShowStatistics()
public void setDisplayFps(boolean show)
show
- Shows the files per second if true
.public void setDisplayStatView(boolean show)
show
- Shows the stat view if true
.public com.jme3.renderer.ViewPort getGuiViewPort()
public com.jme3.renderer.ViewPort getViewPort()
public abstract void simpleInitAppState()
public void simpleUpdate(float tpf)
tpf
- Time per frame.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |